package io.itit.ecp.admin.server.service;

import icu.mhb.mybatisplus.plugln.base.service.JoinIService;
import io.itit.ecp.admin.server.entity.EarlyWarningRecordEntity;

import java.util.Date;

/**
 * <p>
 *
 * @Author：Roy
 * @Description：预警管理服务类
 * @Date：Create by 2023-12-15 11:20:26
 */
public interface IEarlyWarningRecordService extends JoinIService<EarlyWarningRecordEntity> {

    Integer countRecords(String earlyWarningId, String date);

    /**
     * 根据能源数据触发预警
     */
    void triggerWarning(String meterDeviceId, Date solidifyDateStart, Date solidifyDateEnd);
}
